package com.didispace.hello.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
	
	/**
	 * 先build hello工程，然后Maven-Update project，再Run as - Maven install，最后允许HelloApplication
	 * 在浏览器输入http://localhost:8080/hello，就可以调用到这个hello接口，然后就会打印出Hello World
	 * @return
	 */
	@RequestMapping("/hello")
	public String index() {
		return "Hello World";
	}
}
